//---------------------------------------------------------------------------
#ifndef DMServH
#define DMServH

//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "PHTable.h"
#include "StDMServ.h"

//---------------------------------------------------------------------------
class TDMServ1 : public TDataModule
{
__published:  // IDE-managed Components
  PHTable*  TBServ;
  PHTable*  TBRetServ;
  void __fastcall TBServAfterOpen( TObject* Sender );
  void __fastcall TBRetServAfterOpen( TObject* Sender );
  void __fastcall TBRetServImpostoContribuicao3Validate( int Elemento, Variant&  Conteudo,
                                                         PHDataSource*  DS ); private: // User declarations
public: // User declarations
  __fastcall TDMServ1( TComponent* Owner );
  bool __fastcall TemCampoRet( int CodEmp, AnsiString Campo, AnsiString Conteudo );
  int __fastcall ConsultaServicos(TStringList* ListaServicos, TLista* S1);
  void __fastcall PreencheListaServicos(TStringList *ListaServicos);
};

//---------------------------------------------------------------------------
extern PACKAGE TDMServ1*  DMServ1;

//---------------------------------------------------------------------------
#endif

